import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { Menu } from 'src/modules/menu/entities/menu.entity'
import { Role } from 'src/modules/role/entities/role.entity'
import { Permission } from 'src/modules/permission/entities/permission.entity'
import { UserService } from './user.service'
import { UserController } from './user.controller'
import { User } from './entities/user.entity'
import { History } from './entities/history.entity'

@Module({
  imports: [TypeOrmModule.forFeature([User, Role, Permission, Menu, History])], // 注入User实体拿到repository操作对象
  controllers: [UserController],
  providers: [UserService],
  exports: [UserService],
})
export class UserModule {}
